<template>
  <div>
    <p><el-button type="primary" @click="click1">主要按钮</el-button></p>
    <p><el-button type="primary" @click="click2">主要按钮</el-button></p>
  </div>
</template>
<script>
import test from './system/test'
export default {
  name: 'test',
  data() {
    return {
      result: 'abc'
    }
  },
  methods: {
    click1() {
      this.$store.commit('open', {
        code: 'test1',
        name: '测试1',
        template: test
      })
    },
    click2() {
      this.$store.commit('open', {
        code: 'test2',
        name: '测试2',
        template: test
      })
    }
  }
}
</script>
<style lang=''>
</style>
